<?xml version="1.0" encoding="UTF-8"?>
<xsl:transform version="3.0"
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
               xmlns="http://www.w3.org/1999/xhtml"
               xmlns:java="com.uni.crawl.common.util.crawl"
               exclude-result-prefixes="java">

    <xsl:template match="/">
        <root>
            <xsl:for-each select="//*[@class='card-item-single']">
                <dataList>
                    <title>
                        <xsl:value-of select="//*[@class='task-names']"/>
                    </title>
                    <publishedAt>
                        <xsl:value-of select="//*[@class='bottom-ticket']//span[contains(text(), '发布')]/text()"/>
                    </publishedAt>
                    <totalMoney>
                        <xsl:value-of select="//*[@class='total-money']/text()"/>
                    </totalMoney>
                    <desc>
                        <xsl:value-of select="//*[@class='contents-text']/text()"/>
                    </desc>
                    <detailUrl>
                        <xsl:value-of select="a/@href"/>
                    </detailUrl>
                </dataList>
            </xsl:for-each>
        </root>
    </xsl:template>

</xsl:transform>